@extends('layouts.base')

@section('title', '创建商品分类')

@section('content')
    <div class="content">
        <h2>创建商品分类</h2>
        <form method="post">
            {{ csrf_field() }}
            <table>
                <tbody>
                    <tr>
                        <td>选择父分类</td>
                        <td><input type="text" name="pid"></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>名称</td>
                        <td><input type="text" name="name" value="{{ old('name') }}"></td>
                        <td>{{ $errors->first('name') }}</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" value="提交"></td>
                        <td></td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
@endsection